﻿using Sustainalytics.ClientDW.Entities;
using System.Collections.Generic;
using System.Linq;

namespace Sustainalytics.GCCS.Service
{
    public class GCPrincipleEventIndicatorManagementDto : GCPrincipleEventIndicatorDto
    {
        public List<string> ManagementComments { get; set; }
        public string ManagementSummary { get; set; }


        public virtual GCPrincipleEventIndicatorManagementDto LoadFrom(GCPrincipleEventIndicatorManagement data)
        {
            base.LoadFrom(data);

            this.ManagementComments = data.ManagementComments == null ? null : data.ManagementComments.Select(el => el).ToList();
            this.ManagementSummary = data.ManagementSummary;

            return this;
        }
    }
}
